import request from '@/utils/request'

/**
 * 移库申请查询
 * @param {*} form
 * @param {*} pageSize
 * @param {*} currentPage
 */
export function dataList(form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/sq/yk/page', data)
}
/**
 * 新增
 * @param {*} options
 */
export function addData(options) {
  return request.post('/sq/yk/save', options)
}
/**
 * 编辑
 * @param {*} options
 */
export function updateData(options) {
  return request.put('/sq/yk/save', options)
}
/**
 * 删除
 * @param {*} id
 */
export function deleteData(id) {
  return request.delete(`/sq/yk/del/${id}`)
}


// /sq/yk/findAllByStoreId/{storeId}根据门店获取资金利息
export function findById(id) {
  return request.get('/sq/yk/findById/' + id)
}
// 启用停用
export function auditIsOk(form={}) {
  return request.post('/sq/audit/auditSp',form)
}

// 根据id获取库存信息
export function getInven(id) {
  return request.get('/sq/inventory/' + id)
}
